package com.zx.sys.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.zx.sys.domain.Menu;
import com.zx.sys.domain.Role;

public interface RoleMapper {
    int deleteByPrimaryKey(Integer roleid);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer roleid);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);
    
    List<Role> queryAllRole(Role role);
    
    int deleteRoleMenuByRid(Integer rid);
    
    int insertRoleMenu(@Param("rid")Integer rid,@Param("mid")Integer mid);

	List<Role> queryRoleByUid(@Param("available")Integer available, @Param("userid")Integer userid);

	void deleteRoleUserByRid(Integer rid);
}